export default{
    // 设置
    set(key,value){
        localStorage.setItem(key,JSON.stringify(value))
    },
    // 获取
    get(key){
        return JSON.parse(localStorage.getItem(key))
    },
    //清除
    clear(){
        localStorage.clear()
    }
}

